package org.kfive.nova.io.netty.udp;

import java.net.InetSocketAddress;

/**
 * Created by admin on 2017-06-04.
 */
public final class LogEvent {
    public static final byte SEPARATOR = (byte)':';
    private final InetSocketAddress source;
    private final String logfile;
    private final String msg;
    private final long received;

    public LogEvent(String logfile,String msg){
        this(null,-1,logfile,msg);
    }

    public LogEvent(InetSocketAddress source,long received,String logfile,String msg){
        this.logfile = logfile;
        this.source = source;
        this.msg = msg;
        this.received = received;
    }

    public InetSocketAddress getSource() {
        return source;
    }

    public String getLogfile() {
        return logfile;
    }

    public String getMsg() {
        return msg;
    }

    public long getReceived() {
        return received;
    }
}
